package cn.stylefeng.guns.modular.hx.basic.mapper;

import cn.stylefeng.guns.modular.hx.basic.entity.HxBasicPositionGoods;
import cn.stylefeng.guns.modular.hx.basic.model.params.HxBasicPositionGoodsParam;
import cn.stylefeng.guns.modular.hx.basic.model.result.HxBasicPositionGoodsResult;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStorageStockParam;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStorageStockResult;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 库位商品关联表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2023-09-06
 */
public interface HxBasicPositionGoodsMapper extends BaseMapper<HxBasicPositionGoods> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2023-09-06
     */
    List<HxBasicPositionGoodsResult> customList(@Param("paramCondition") HxBasicPositionGoodsParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2023-09-06
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") HxBasicPositionGoodsParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2023-09-06
     */
    Page<HxBasicPositionGoodsResult> customPageList(@Param("page") Page page, @Param("paramCondition") HxBasicPositionGoodsParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2023-09-06
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") HxBasicPositionGoodsParam paramCondition);

	HxBasicPositionGoodsResult findBySpec(@Param("paramCondition")HxBasicPositionGoodsParam param);

	HxStorageStockResult findStorageStockBySpec(@Param("paramCondition")HxStorageStockParam param);

	boolean saveBatchList(@Param("list")List<HxBasicPositionGoodsParam> list);

	List<HxBasicPositionGoodsResult> findemptyListBySpec();

    List<HxBasicPositionGoodsResult> findemptyBywarehouseIdList(@Param("list") List<Long> warehouseIdList);


}
